import { PageView } from '@/layouts';

export default {
	path: '/equipment',
	name: 'equipment',
	redirect: '/equipment/List',
	component: PageView,
	meta: {
		title: '设备管理',
		icon: 'hdd',
		permission: [ 'equipmentManagement' ]
	},
	children: [{
		path: '/equipment/List',
		name: 'equipmentListForm',
		component: () => import('@/views/equipment/List'),
		meta: {
			title: '设备列表',
			permission: [ 'equipment_list' ]
		},
	},
	// {
	// 	path: '/equipment/ProtocolList',
	// 	name: 'ProtocolListForm',
	// 	component: () => import('@/views/equipment/ProtocolList'),
	// 	meta: {
	// 		title: '设备协议列表',
	// 		keepAlive: true
	// 	},
	// },
	{
		path: '/equipment/Add',
		name: 'EquipmentAddForm',
		component: () => import('@/views/equipment/Add'),
		meta: {
			title: '添加设备',
			permission: [ 'equipment_add' ]
		},
	},
	{
		path: '/equipment/Edit',
		name: 'EquipmentEditForm',
		component: () => import('@/views/equipment/Add'),
		meta: {
			title: '编辑设备',
			permission: [ 'equipment_update' ]
		},
		hidden: true
	},
	{
		path: '/equipment/templateList',
		name: 'templateList',
		component: () => import('@/views/equipment/templateList/List'),
		meta: {
			title: '寄存器模板',
			permission: [ 'template_list' ]
		},
	},
	{
		path: '/equipment/equipmentCodeList',
		name: 'equipmentCode',
		component: () => import('@/views/equipment/equipmentCode/list'),
		meta: {
			title: '设备MAC配置',
			permission: [ 'equipmentCode_list' ]

		},
	},
	// {
	// 	path: '/equipment/deviceTypeList',
	// 	name: 'deviceType',
	// 	component: () => import('@/views/equipment/deviceTypeList'),
	// 	meta: {
	// 		title: '设备类型',
	// 		keepAlive: true
	// 	},
	// },
	// {
	// 	path: '/equipment/Protocol/list',
	// 	name: 'equipmenttProtocol',
	// 	component: () => import('@/views/equipment/equipmentProtocol/list'),
	// 	meta: {
	// 		title: '通信协议配置',
	// 		permission: [ 'protocol' ]
	// 	},
	// },
	],
};
